home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3297 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.0 KB  |  37 lines

  1. Path: news.cis.nctu.edu.tw!usenet
  2. From: Hßlfdan Ingvarsson <halfdan@oz.is>
  3. Newsgroups: comp.lang.c++
  4. Subject: Visual C++ 4.0 lacking initializers?
  5. Date: Tue, 23 Jan 1996 08:28:54 +0000
  6. Organization: OZ Inc.
  7. Message-ID: <31049C46.A26@oz.is>
  8. NNTP-Posting-Host: @pc-ast1.oz.is
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b5 (Win95; I)
  13.  
  14. Is it me or is this sort of code not possible with VC++ 4.0? 
  15.  
  16. // Declarations of class Foo
  17.  
  18. // VC++ Complains about the line below with the error
  19. // error C2436: '__ctor' : cannot initialize member functions
  20. Foo::Foo(void) : Foo::Foo(10) {}
  21.  
  22. Foo::Foo(x)
  23. {
  24.   // Some stuff
  25. }
  26.  
  27. Tell me about it,
  28.  
  29. Ciao,
  30.  
  31.   H.
  32.  
  33. -- 
  34. -------------------------------------------------------------------------------Halfdan Ingvarsson, Webmaster/Software Engineer, OZ/Snorrabraut 54/105 Iceland
  35. WTel: +3545620362, WFax: +3545610362, HTel: +3545644424, E-Mail: halfdan@oz.is
  36. HomePage: http://www.oz.is/~halfdan, ObQuote: Little things make big thing?
  37.